﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RestFulService
{
    //交易上传
    public class OrdData
    {
        /// <summary>
        /// 
        /// </summary>
        public string storeId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string posNo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string cashierId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string saleman { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int deductionPoint { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int givePoint { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int givePointBrand { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int giveXjPoint { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int giveXjPointBrand { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int memberPoint { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int memberPointBrand { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int needTableware { get; set; }
        /// <summary>
        /// coco测试
        /// </summary>
        public string orderSource { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal packageFee { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal payPrice { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public string posOrderType { get; set; }
        /// <summary>
        /// 商品列表
        /// </summary>
        public string productInfoJson { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal promotionDiscount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int shareCouponAndPromotion { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public decimal totalComboDiscount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal totalCouponAmount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal totalDiscount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int totalFreight { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int totalPoint { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal totalPrice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int usePromotion { get; set; }

        /// <summary>
        /// 会员编号
        /// </summary>
        public string memberno { get; set; }
        /// <summary>
        /// 交易时间
        /// </summary>
        public string systemdate { get; set; }
        /// <summary>
        /// 礼券列表
        /// </summary>
        public string GiveCouponVO { get; set; }

        //礼券信息
        public class TicketData
        {
            /// <summary>
            /// 
            /// </summary>
            public int flineno { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string fbatchno { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int fnum { get; set; }
        }

        //商品明细
        public class OrdItem
        {
            /// <summary>
            /// 
            /// </summary>
            public int flineno { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string customerCode { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string erpCode { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string pluName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public decimal originalPrice { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public decimal pluPrice { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int qty { get; set; }
            /// <summary>
            /// 小计前折扣
            /// </summary>
            public decimal promBeforeDiscAmt { get; set; }
            /// <summary>
            /// 小计后折扣
            /// </summary>
            public decimal promAfterDiscAmt { get; set; }
            /// <summary>
            /// 实际销售金额
            /// </summary>
            public decimal saleAmt { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string promno { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string materialClassIdLarge { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string materialClassIdMid { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string materialClassIdSmall { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string type { get; set; }
            /// <summary>
            /// 口味列表
            /// </summary>
            public List<skuProperty> skuPropertys { get; set; }
        }

        public class skuProperty
        {
            /// <summary>
            /// 
            /// </summary>
            public string groupId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string propertyId { get; set; }
        }
    }

}
